﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace GuiSenzori
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            string xmlFile = @"C:\Configurare.xml";
            XMLParser xmlParser = new XMLParser(xmlFile);
            Dictionary<string, string> namesForm = xmlParser.ExtractAttributePairs("Configurare", string.Empty, string.Empty, "name", "formula");

            Application.Run(new SenzorGUI(namesForm["Limba"], namesForm["ServerIP"], namesForm["ServerPort"]));
        }
    }
}
